package cn.eclass.bean.api;

import cn.eclass.entity.SchoolOrderEntity;
import java.util.List;

public interface ISchoolOrderBean extends ICommonBean<SchoolOrderEntity> {

    //get a certain number of orders from db.
    List<SchoolOrderEntity> getRecentOrders(int amount);

    //make order approved
    public boolean approveOrder(SchoolOrderEntity order);
	
	int getOrderCountBySchoolId(int id);
	
	List<SchoolOrderEntity> getByUser(int userId);
}
